const express = require('express');

const app = express();

app.get('/liu',(req,res)=>{
    console.log(req.query);
    res.end('退学回家了');
});
app.get('/gogogo',(req,res)=>{
    console.log(req.headers);
    res.add('碌碌无为');
});
app.get('/test/test1',(req,res)=>{
    console.log(req.query);
    res.add('逆着光');
});
app.get('/testres',(req,res)=>{
    res.sendFile(__dirname + '/biu/index.html')
});

app.listen(3000,err=>{
    if(!err) console.log('服务器启动成功');
    else console.log(err);
})  